package com.ys.entity.mall;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TM_GoodsStockRunning", catalog="Id")
public class TmGoodsStockRunning extends BaseEntity<TmGoodsStockRunning> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="GoodsId", nameJava="goodsId", typeDataBase="bigint")
	private Long goodsId;
	@YsField(nameDataBase="GoodsCode", nameJava="goodsCode", typeDataBase="varchar")
	private String goodsCode;
	@YsField(nameDataBase="GoodsName", nameJava="goodsName", typeDataBase="varchar")
	private String goodsName;
	@YsField(nameDataBase="Type", nameJava="type", typeDataBase="int")
	private Integer type;
	@YsField(nameDataBase="RelativeId", nameJava="relativeId", typeDataBase="bigint")
	private Long relativeId;
	@YsField(nameDataBase="NumChange", nameJava="numChange", typeDataBase="int")
	private Integer numChange;
	@YsField(nameDataBase="NumLeft", nameJava="numLeft", typeDataBase="int")
	private Integer numLeft;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TmGoodsStockRunning setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getGoodsId() {
		return goodsId;
	}
	public TmGoodsStockRunning setGoodsId(Long goodsId) {
		this.goodsId = goodsId;
		return this;
	}
	public String getGoodsCode() {
		return goodsCode;
	}
	public TmGoodsStockRunning setGoodsCode(String goodsCode) {
		this.goodsCode = goodsCode;
		return this;
	}
	public String getGoodsName() {
		return goodsName;
	}
	public TmGoodsStockRunning setGoodsName(String goodsName) {
		this.goodsName = goodsName;
		return this;
	}
	public Integer getType() {
		return type;
	}
	public TmGoodsStockRunning setType(Integer type) {
		this.type = type;
		return this;
	}
	public Long getRelativeId() {
		return relativeId;
	}
	public TmGoodsStockRunning setRelativeId(Long relativeId) {
		this.relativeId = relativeId;
		return this;
	}
	public Integer getNumChange() {
		return numChange;
	}
	public TmGoodsStockRunning setNumChange(Integer numChange) {
		this.numChange = numChange;
		return this;
	}
	public Integer getNumLeft() {
		return numLeft;
	}
	public TmGoodsStockRunning setNumLeft(Integer numLeft) {
		this.numLeft = numLeft;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public TmGoodsStockRunning setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TmGoodsStockRunning setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TmGoodsStockRunning setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TmGoodsStockRunning setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TmGoodsStockRunning tmGoodsStockRunning(
		Long goodsId,
		String goodsCode,
		String goodsName,
		Integer type,
		Long relativeId,
		Integer numChange,
		Integer numLeft,
		String remark,
		Integer status
			) {
		TmGoodsStockRunning entity = new TmGoodsStockRunning();
		entity.setGoodsId(goodsId);
		entity.setGoodsCode(goodsCode);
		entity.setGoodsName(goodsName);
		entity.setType(type);
		entity.setRelativeId(relativeId);
		entity.setNumChange(numChange);
		entity.setNumLeft(numLeft);
		entity.setRemark(remark);
		entity.setStatus(status);
		return entity;
	}
}